package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 轮播图
 *
 * @author 16693103420
 * @since 2024-01-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_banner")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BannerModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//轮播图ID
    private String name;//轮播图名称
    private Integer type;// 类型 1 顶部 2 尾部
    private String bannerUrl;//轮播图图片路径
    private Integer sort;//排序
    private Integer jump;
    private Integer jumpPartnerId;
    private Integer status;//轮播图状态
    private Integer classification;//分类
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private String typeText;
    @TableField(exist = false)
    private String classificationText;

    @TableField(exist = false)
    private String code;
}
